<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件绑定</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <button @click="isShow">显示/隐藏</button>
    <img v-show="flag" src="img/WIN_20220310_23_21_03_Pro.jpg">
</div>

</body>
<script>

    new Vue({

        el:"#app",
        data:{
            flag:false
        },
        methods:{
            isShow(){
                this.fiag = !this.flag
            }
        }
    });

</script>
</html>